{* Extend our master template *}
{extends file="master.tpl"}

{* This block is defined in the master.php template *}
{block name=content}
    <div class="row">
                            
        <div class="col-lg-12">
            <div class="panel panel-default">
                {include file="components/panel_heading.tpl" title=$title sub_title=$sub_title}
            
                <div class="panel-body">
                    
                    <form id="form" class="form-horizontal" role="form" method="post">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">{'keyword'|trans}</label>
                            <div class="col-sm-9">
                                <input type="text" class="required form-control" name="keywords" value="{$info['keyword']}">
                            </div>
                        </div>

                        <hr style="width:100%; color:#ccc;"></hr>

                        <div class="panel-body noPadding">
                            <ul id="myTab" class="nav nav-tabs">
                                {assign var="i" value=0}
                                {foreach from=$language item=lang}
                                    {assign var="lang_code" value=$lang["lang_code"]}
                                    <li {if $i==0}class="active"{/if}><a href="#{$lang['lang_code']}" data-toggle="tab">{"translate_$lang_code"|trans}</a></li>
                                    {assign var="i" value=$i+1}
                                {/foreach}
                            </ul>

                            <div class="tab-content">
                                {assign var="i" value=0}
                                {foreach from=$language item=lang}
                                    {assign var="lang_code" value=$lang["lang_code"]}
                                    <div class="tab-pane fade {if $i==0}in active{/if} form-group" id="{$lang_code}">
                                        <label class="col-sm-3 control-label">{"translate_$lang_code"|trans}</label>
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control" name="translate_{$lang_code}" value='{$info["translate_$lang_code"]}' required>
                                        </div>
                                    </div>
                                    {assign var="i" value=$i+1}
                                {/foreach}
                            </div>    
                        </div><!-- End .panel-body -->
                        
                    <div class="clear"></div>

                        <div class="form-group">
                            
                            <div class="col-lg-offset-2">
                                <div class="pad-left15">
                                    <button type="submit" class="btn btn-primary">{"submit"|trans}</button>
                                </div>
                            </div>
                        </div>
            
                    </form>

                </div><!-- End .panel-body -->
            </div><!-- End .widget -->
        </div><!-- End .col-lg-6  -->
    </div>
{/block}